package com.marquee.customview;

import com.marquee.HomeActivity;

import android.support.v4.app.Fragment;

public class MyFragment extends Fragment {
	 
	
    
	protected void replaceFragment(MyFragment fragment) {
		if (getActivity() == null)
			return;
		
			HomeActivity fca = (HomeActivity) getActivity();
			fca.replaceFragment(fragment);
		
	}
	
	protected void addFragment(MyFragment fragment) {
		if (getActivity() == null)
			return;
		
		HomeActivity fca = (HomeActivity) getActivity();
			fca.addFragment(fragment);
		
	}
	

}

